package com.template.service;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.template.dto.Comment;
import com.template.result.Result;

import java.util.List;
import java.util.Map;


public interface CommentService {
    Result addComment(Comment comment) throws JsonProcessingException;

    void good(Integer userId,Integer id) throws JsonProcessingException;

    List<Comment> getCommentsByTimeOrGood(Map<String, Object> params);

    void noGood(Integer userId, Integer id) throws JsonProcessingException;
}
